<?php
$content = file_get_contents("http://www.baidu.com");
if (strpos($http_response_header[0], "200")) {
    echo "SUCCESS";
    echo $content;
}
else {
    echo "FAILED";
}
?>